package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 在线记录对象 dz_zaixian
 * 
 * @author ruoyi
 * @date 2022-09-28
 */
public class DzZaixian extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录id */
    private Long zxId;

    /** 会员 */
    @Excel(name = "会员")
    private Long huiyuanId;

    /** 在线日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "在线日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date zxDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date sDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date eDate;

    public Date getsDate() {
        return sDate;
    }

    public void setsDate(Date sDate) {
        this.sDate = sDate;
    }

    public Date geteDate() {
        return eDate;
    }

    public void seteDate(Date eDate) {
        this.eDate = eDate;
    }

    /** 在线时长 */
    @Excel(name = "在线时长")
    private String shichang;

    private String shichang1;

    public String getShichang1() {
        return shichang1;
    }

    public void setShichang1(String shichang1) {
        this.shichang1 = shichang1;
    }

    /** 来源 */
    @Excel(name = "来源")
    private String laiyuan;

    /** IP地址 */
    @Excel(name = "IP地址")
    private String ip;

    public void setZxId(Long zxId) 
    {
        this.zxId = zxId;
    }

    public Long getZxId() 
    {
        return zxId;
    }
    public void setHuiyuanId(Long huiyuanId) 
    {
        this.huiyuanId = huiyuanId;
    }

    public Long getHuiyuanId() 
    {
        return huiyuanId;
    }
    public void setZxDate(Date zxDate) 
    {
        this.zxDate = zxDate;
    }

    public Date getZxDate() 
    {
        return zxDate;
    }
    public void setShichang(String shichang) 
    {
        this.shichang = shichang;
    }

    public String getShichang() 
    {
        return shichang;
    }
    public void setLaiyuan(String laiyuan) 
    {
        this.laiyuan = laiyuan;
    }

    public String getLaiyuan() 
    {
        return laiyuan;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("zxId", getZxId())
            .append("huiyuanId", getHuiyuanId())
            .append("zxDate", getZxDate())
            .append("shichang", getShichang())
            .append("laiyuan", getLaiyuan())
            .append("ip", getIp())
            .toString();
    }
}
